package com.jy.rhin.support.parsing;

import com.jy.rhin.application.enums.DocumentTypeEnum;
import com.jy.rhin.facade.dto.DocumentModule;
import com.jy.rhin.facade.dto.TemplateRespDto;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author：hb
 * @Package：com.jy.rhin.support.parsing
 * @Project：rhin-aggr-service
 * @Date：17/04/2024 11:39 am
 */
@Component
public class MedicalCertificateOfBirthParser extends BaseDocumentParser {
    @Override
    public DocumentTypeEnum getDocumentType() {
        return DocumentTypeEnum.MEDICAL_CERTIFICATE_OF_BIRTH;
    }

    @Override
    public List<TemplateRespDto> documentParsing(Object json, List<TemplateRespDto> templateRespList) {
        return null;
    }

    @Override
    public List<DocumentModule> createBodyModule() {
        List<DocumentModule> list=new ArrayList<>();
        list.add(new DocumentModule("主要健康问题章节","/component/structuredBody/component/section/code[@code='11450-4']"));

        list.add(new DocumentModule("生命体征章节","/component/structuredBody/component/section/code[@code='8716-3']"));


        list.add(new DocumentModule("监护人章节","/component/structuredBody/component/section/code"));

        list.add(new DocumentModule("接生相关信息章节 ","/component/structuredBody/component/section/code[@displayName='接生相关信息']"));
        return list;
    }
}
